From edf7b5291f14b0f720c8ca1ff93d1f99e7c99659 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Mon, 3 Dec 2018 00:05:08 -0600 Subject: [PATCH] Replace size() == 0 with empty() when more readable. --- exif.cc | 2 +- main.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exif.cc b/exif.cc index 639e4147c..f399446b0 100644 --- a/exif.cc +++ b/exif.cc @@ -1112,7 +1112,7 @@ exif_put_value(const int ifd_nr, const uint16_t tag_id, const uint16_t type, con if (BYTE_TYPE(type)) { assert(item_size == 1); - if (tag->data.size() == 0) { + if (tag->data.empty()) { tag->data.append(QByteArray()); } QByteArray qba = tag->data.at(0).toByteArray(); diff --git a/main.cc b/main.cc index 575659be3..8990f1a24 100644 --- a/main.cc +++ b/main.cc @@ -558,7 +558,7 @@ main(int argc, char* argv[]) optarg = FETCH_OPTARG; qargs_stack.push(QargStackElement(argn, qargs)); qargs = load_args(optarg, qargs.at(0)); - if (qargs.size() == 0) { + if (qargs.empty()) { QargStackElement ele = qargs_stack.pop(); argn = ele.argn; qargs = ele.qargs; -- 2.30.2